<html >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登陆界面</title>
    <meta name="keywords" content="">
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{URL::asset('resources/xadmin/lib/layui/css/layui.css')}}">

    <link rel='stylesheet' href="{{URL::asset('resources/login/css/style.css')}}" >

    <script type="application/x-javascript">
        addEventListener("load", function()
        { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
    </script>
    <script type="text/javascript" src="{{URL::asset('resources/xadmin/js/jquery.min.js')}}"></script>
    <script type="text/javascript" src="{{URL::asset('resources/login/js/layer/2.4/layer.js')}}"></script>

</head>
<body>
<script>$(document).ready(function(c) {
        $('.close').on('click', function(c){
            $('.login-form').fadeOut('slow', function(c){
                $('.login-form').remove();
            });
        });
    });
</script>

<h1>您好,欢迎登陆</h1>
<div class="login-form">
    <div class="close"> </div>
    <div class="head-info">
        <label class="lbl-1"> </label>
        <label class="lbl-2"> </label>
        <label class="lbl-3"> </label>
    </div>
    <div class="avtar"><img src="{{URL::asset('resources/login/images/avtar.png')}}" /></div>
    <div class="clear"></div>
    <form action="{{URL::action('Admin\PublicController@check')}}" method="post">
        <!--以后只要写post提交的表单第一件是就是写csrf-->
        {{csrf_field()}}

        <div>
            <input name="username" type="text" class="text" value="username" onFocus="this.value = '';"
                   onBlur="if (this.value == '') {this.value = 'username';}" >
            <input name="password" type="password" value="password" onFocus="this.value = '';"
                   onBlur="if (this.value == '') {this.value = 'password';}">
            <input name="captcha" type="text"  AUTOCOMPLETE="OFF" >

        </div>

        <img src="{{captcha_src('flat')}}" id="captcha"><a id="kanbuq" href="javascript:;">看不清换一张</a>

        <div class="signin"><input type="submit" value="Login" ></div>
    </form>
</div>




<div class="copy-rights}}">
    <p>Copyright &copy; 2015.Company name All rights reserved.<a target="_blank" href="/">www.template.com</a></p>
</div>


<script type="text/javascript">
    $(function () {
        //切换验证码
        var src=$('#captcha').attr('src');
        $('#kanbuq').click(function () {
            //q切换图片，添加随机数
            $('#captcha').attr('src',src+'&_='+Math.random());
        });
        //打印错误信息
                @if (count($errors) > 0)
        var allError='';
        @foreach ($errors->all() as $error)
            allError +="{{$error}}<br>";
        @endforeach
        //输出错误信息
        layer.alert(allError,{title:'错误提示',icon: 5});
        @endif

    });
</script>


</body>
</html>
